DefaultCharacteristicWrapper

class DefaultCharacteristicWrapper(characteristic: CBCharacteristic, val service: RemoteServiceWrapper) : RemoteCharacteristicWrapper

Default implementation of RemoteCharacteristicWrapper

Parameters

characteristic

the CBCharacteristic to wrap

Constructors

Link copied to clipboard
constructor(characteristic: CBCharacteristic, service: RemoteServiceWrapper)

Properties

Link copied to clipboard

The list of RemoteDescriptorWrapper of associated with the characteristic

Link copied to clipboard

The set of all CharacteristicProperty of the characteristic

Link copied to clipboard
open override val service: RemoteServiceWrapper

The RemoteServiceWrapper this characteristic belongs to

Link copied to clipboard
open override val uuid: CBUUID

The UUID of the characteristic

Functions

Link copied to clipboard
open override fun readValue(peripheral: CBPeripheral)

Request a CBPeripheral to read the characteristic

Link copied to clipboard
open override fun setNotificationValue(enabled: Boolean, peripheral: CBPeripheral)

Request a CBPeripheral to update the notifying status of the characteristic

Link copied to clipboard
open override fun writeValue(value: NSData, peripheral: CBPeripheral, withResponse: Boolean)

Request a CBPeripheral to write value to the characteristic